package sealte.wdgf.control.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import sealte.wdgf.control.servlet.system.SystemGetServlet;

public class InvalidateSessionServlet extends SystemGetServlet {

	private static final long serialVersionUID = -1958527357980305700L;

	@Override
	protected void doBusinessService(HttpServletRequest req,
			HttpServletResponse resp) throws ServletException, IOException {
		HttpSession session = req.getSession();
		session.invalidate();	
		//req.getRequestDispatcher("HtmlContentTransfer").forward(req, resp);
		resp.sendRedirect("HtmlContentTransfer");
		super.doBusinessService(req, resp);
	}

}
